package com.liohi.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

import lombok.Data;

/**
 * 
 * @TableName simulation_equipment
 */
@TableName(value ="simulation_equipment")
@Data
public class SimulationEquipment implements Serializable {
    /**
     * 仿真设备ID
     */
    @Excel(name = "仿真设备ID", orderNum = "1")
    @TableId(value = "simulation_equipment_id", type = IdType.AUTO)
    private Integer simulationEquipmentId;

    /**
     * 仿真设备名
     */
    @Excel(name = "仿真设备名", orderNum = "2")
    @TableField(value = "name")
    private String name;

    /**
     * 仿真设备编号
     */
    @Excel(name = "仿真设备编号", orderNum = "3")
    @TableField(value = "number")
    private String number;

    /**
     * 仿真设备类型
     */
    @Excel(name = "仿真设备类型", orderNum = "4")
    @TableField(value = "type")
    private Integer type;

    /**
     * 设备系统
     */
    @Excel(name = "设备系统", orderNum = "5")
    @TableField(value = "software_system")
    private String softwareSystem;

    /**
     * 设备版本
     */
    @Excel(name = "设备版本", orderNum = "6")
    @TableField(value = "version_number")
    private String versionNumber;

    /**
     * 设备供应商
     */
    @Excel(name = "设备供应商", orderNum = "7")
    @TableField(value = "supplier")
    private String supplier;

    /**
     * 设备状态
     */
    @TableField(value = "status")
    private Integer status;

    @Excel(name="设备状态",orderNum = "8")
    @TableField(exist = false)
    private String statusName;
    /**
     * 设备用途
     */
    @Excel(name = "设备用途", orderNum = "9")
    @TableField(value = "purpose")
    private String purpose;

    /**
     * 查询字典id
     */
    @TableField(value = "laboratory_id")
    private Integer laboratoryId;

    /**
     * 缩略图
     */
    @TableField(value = "thumbnail")
    private String thumbnail;

    /**
     * 创建时间
     */
    @Excel(name = "创建时间", orderNum = "10")
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @Excel(name = "修改时间", orderNum = "11")
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SimulationEquipment other = (SimulationEquipment) that;
        return (this.getSimulationEquipmentId() == null ? other.getSimulationEquipmentId() == null : this.getSimulationEquipmentId().equals(other.getSimulationEquipmentId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getNumber() == null ? other.getNumber() == null : this.getNumber().equals(other.getNumber()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getSoftwareSystem() == null ? other.getSoftwareSystem() == null : this.getSoftwareSystem().equals(other.getSoftwareSystem()))
            && (this.getVersionNumber() == null ? other.getVersionNumber() == null : this.getVersionNumber().equals(other.getVersionNumber()))
            && (this.getSupplier() == null ? other.getSupplier() == null : this.getSupplier().equals(other.getSupplier()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getPurpose() == null ? other.getPurpose() == null : this.getPurpose().equals(other.getPurpose()))
            && (this.getLaboratoryId() == null ? other.getLaboratoryId() == null : this.getLaboratoryId().equals(other.getLaboratoryId()))
            && (this.getThumbnail() == null ? other.getThumbnail() == null : this.getThumbnail().equals(other.getThumbnail()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSimulationEquipmentId() == null) ? 0 : getSimulationEquipmentId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getNumber() == null) ? 0 : getNumber().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getSoftwareSystem() == null) ? 0 : getSoftwareSystem().hashCode());
        result = prime * result + ((getVersionNumber() == null) ? 0 : getVersionNumber().hashCode());
        result = prime * result + ((getSupplier() == null) ? 0 : getSupplier().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getPurpose() == null) ? 0 : getPurpose().hashCode());
        result = prime * result + ((getLaboratoryId() == null) ? 0 : getLaboratoryId().hashCode());
        result = prime * result + ((getThumbnail() == null) ? 0 : getThumbnail().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", simulationEquipmentId=").append(simulationEquipmentId);
        sb.append(", name=").append(name);
        sb.append(", number=").append(number);
        sb.append(", type=").append(type);
        sb.append(", softwareSystem=").append(softwareSystem);
        sb.append(", versionNumber=").append(versionNumber);
        sb.append(", supplier=").append(supplier);
        sb.append(", status=").append(status);
        sb.append(", purpose=").append(purpose);
        sb.append(", laboratoryId=").append(laboratoryId);
        sb.append(", thumbnail=").append(thumbnail);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

}